package com.example.crm_system.mapper;

import com.example.crm_system.entity.Params;
import com.example.crm_system.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    User findByAccountAndPassword(@Param("account") String account, @Param("password") String password);

    User findById(Integer userId);

    void insert(User user);

    void update(User user);

    User selectByAccount(@Param("account") String account);

    List<User> searchUser(@Param("params") Params params);

    void delete(Integer eno);
}

